<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddEditAdvertisement.ascx.cs" Inherits="AdminCP_AddEditAdvertisement" %>

<table class="listing form" cellpadding="0" cellspacing="0">
    <tr>
        <th class="full" colspan="2">
            <%=header + " " + Resources.Lang.admincpAdvertisements%>
        </th>
    </tr>
     <tr>
        <td class="first" width="200" style="height: 43px">
            <strong>
                <%=Resources.Lang.Image%>
            </strong>
        </td>
        <td class="last" style="width: 85%; height: 43px;">
            &nbsp;<asp:TextBox ID="txtImage" runat="server" Width="190px"></asp:TextBox><br />
            <input type="button" value="<%=Resources.Lang.ChooseImage %>" onclick="open('ImageManager.aspx?location=advertisements&idFill=<%=Server.UrlEncode(this.txtImage.ClientID) %>','','menubar,width=640,height=480');" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidatorImage" runat="server" ControlToValidate="txtImage"
                SetFocusOnError="True" Font-Bold="True" ValidationGroup="AdvertisementsGroup"></asp:RequiredFieldValidator>            
        </td>        
    </tr>    
    <tr>
        <td class="first" width="200" style="height: 24px">
            <strong>
                Url
            </strong>
        </td>
        <td class="last" style="width: 85%; height: 43px">
           &nbsp;<asp:TextBox ID="txtUrl" runat="server" Width="190px"></asp:TextBox><br />
           <asp:RequiredFieldValidator ID="RequiredFieldValidatorUrl" runat="server" ControlToValidate="txtUrl"
                SetFocusOnError="True" Font-Bold="True" ValidationGroup="AdvertisementsGroup"></asp:RequiredFieldValidator>            
        </td>
    </tr>     
</table>
<br />
<center>
    <asp:Button ID="btnOK" runat="server" Text="OK" Width="50px" OnClick="btnOK_Click"
        ValidationGroup="AdvertisementsGroup"/></center>
<br />
<br />